/**
 *  (c)
 * <p>
 *
 * <p>
 *
 */

package com.nn.smart.bus.feign;

import com.nn.smart.bus.commons.tools.constant.ServiceConstant;
import com.nn.smart.bus.commons.tools.security.bo.ResourceBO;
import com.nn.smart.bus.feign.fallback.ResourceFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 资源
 *
 * @author nanning
 * @since 1.0.0
 */
@FeignClient(name = ServiceConstant.BUS_ADMIN_SERVER, fallback = ResourceFeignClientFallback.class, contextId = "ResourceFeignClient")
public interface ResourceFeignClient {
    /**
     * 获取所有资源列表
     */
    @GetMapping("sys/resource/list")
    List<ResourceBO> list();
}
